﻿#! /usr/bin/env python
# coding=utf-8
##########################################################
#                                                        #
#   File: index.py                                       #
#                                                        #
#   Copyright (C) 2009 Xeye Team                         #
#                                                        #
#                                                        #
#   Home: http://xeyeteam.appspot.com                    #
#                                                        #
##########################################################
import wsgiref.handlers
from google.appengine.ext import webapp
from google.appengine.api import memcache
from google.appengine.ext.webapp import template
import os  

class MainIndex(webapp.RequestHandler):  
    def get(self):    
        path = os.path.join(os.path.dirname(__file__), 'index.html')
        self.response.out.write(template.render(path, {}))
        return

def main():
    application = webapp.WSGIApplication([('.*', MainIndex),    
                                          ], debug=True)
    wsgiref.handlers.CGIHandler().run(application)

if __name__ == '__main__':
    main()
